module.exports = {
  title: 'idouya',
  search: true,
  searchMaxSuggestions: 10,
  sidebarDepth: 1,
  displayAllHeaders: true,
  lastUpdated: 'Last Updated',
  description: 'idouya book',
  head: [['link', { rel: 'icon', href: '/public.ico' }]],
  themeConfig: {
    displayAllHeaders: true,
    sidebar: 'auto',
    logo: '/hero.png',
    nav: [
      {
        text: '基础入门',
        link: '/guide/',
      },
      {
        text: '相关案例',
        link: '/demos/',
      },
      {
        text: '兜牙的博客',
        items: [
          { text: '掘金', link: 'https://juejin.cn/column/7345746216151498790' },
          { text: 'CSDN', link: 'https://blog.csdn.net/weixin_38391840?type=blog' },
        ],
      },
    ],
    sidebar: [
      {
        title: '基础入门',
        collapsable: false,
        sidebarDepth: 0,
        children: [{ title: '初始程序', path: '/guide/' }],
      },
      {
        title: '相关案例',
        collapsable: false,
        sidebarDepth: 0,
        children: [{ title: '足球和篮球2', path: '/demos/' }],
      },
    ],
  },
  markdown: {
    lineNumbers: true,
    // markdown-it-anchor 的选项
    anchor: { permalink: false },
    // markdown-it-toc 的选项
    toc: { includeLevel: [1, 2] },
    extendMarkdown: (md) => {
      md.use(require('markdown-it-copy'))
    },
  },
}
